Skip to content

Document TypeDescriptor method operations - #552

Merged
jonathanpeppers merged 4 commits into
mainfrom
jonathanpeppers-java-invoke-docs
Aug 16, 2026
Merged

Document TypeDescriptor method operations#552
jonathanpeppers merged 4 commits into
mainfrom
jonathanpeppers-java-invoke-docs

Conversation

@jonathanpeppers

Copy link
Copy Markdown
Member

Summary

  • Documented all seven source-backed Java.Lang.Invoke.ITypeDescriptor.IOfMethod operations for changing and inspecting method descriptors.
  • Kept the follow-up limited to Android API 34 TypeDescriptor.OfMethod members, with no overlap with the merged lookup, call-site, var-handle, or reference-kind documentation PRs.

Refs #201

Sources

Validation

  • Parsed docs/xml/Java.Lang.Invoke/ITypeDescriptor+IOfMethod.xml with PowerShell's XML parser.
  • Confirmed CRLF line endings with zero bare LF characters.
  • Confirmed zero To be added. placeholders remain in the edited file; 420 remain in the partial Java.Lang.Invoke scope.
  • Reviewed the full focused diff and ran git diff --check.

Refs #201

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@jonathanpeppers
jonathanpeppers requested review from dalexsoto and a lite review from Copilot and removed request for Copilot August 15, 2026 14:38
@jonathanpeppers
jonathanpeppers enabled auto-merge (squash) August 15, 2026 14:38

@dalexsoto dalexsoto left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

InsertParameterTypes says descriptors are inserted before the parameter at pos, but API 34 permits pos == ParameterCount; in that case no parameter exists there and the descriptors are appended. Please say insertion starts at pos and explicitly document the append case: ITypeDescriptor+IOfMethod.xml.

Refs #201

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings August 16, 2026 14:04

@jonathanpeppers jonathanpeppers left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in 3f2c925. InsertParameterTypes now says insertion starts at pos and explicitly documents that pos == ParameterCount() appends the supplied descriptors because no parameter exists at that position.

@jonathanpeppers

Copy link
Copy Markdown
Member Author

Addressed in 3f2c925: insertion starts at pos; when pos == ParameterCount(), the supplied descriptors are appended because no parameter exists at that position.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds detailed XML documentation for the Android API 34 Java.Lang.Invoke.ITypeDescriptor.IOfMethod (“TypeDescriptor.OfMethod”) operations so the generated .NET API docs no longer contain To be added. placeholders for these members.

Changes:

  • Replaced placeholder <summary>, <param>, <returns>, and <remarks> text for seven ITypeDescriptor.IOfMethod members.
  • Added concise behavioral descriptions for descriptor-transforming and descriptor-inspecting operations.
Suppressed comments (6)

docs/xml/Java.Lang.Invoke/ITypeDescriptor+IOfMethod.xml:125

  • These member docs add new prose but omit the standard Android reference link + AOSP/CC BY attribution paragraphs used elsewhere in this file (e.g., ParameterCount/ParameterList). For consistency and licensing attribution, please add the reference link for changeReturnType(...) and the attribution para to this block.
        <remarks>
          <para>The returned descriptor has the same parameter types as this descriptor and uses <paramref name="newReturn" /> as its return type.</para>
        </remarks>

docs/xml/Java.Lang.Invoke/ITypeDescriptor+IOfMethod.xml:210

  • These member docs add new prose but omit the standard Android reference link + AOSP/CC BY attribution paragraphs used elsewhere in this file (e.g., ParameterCount/ParameterList). For consistency and licensing attribution, please add the reference link for insertParameterTypes(...) and the attribution para to this block.
        <remarks>
          <para>Insertion starts at <paramref name="pos" />. When <paramref name="pos" /> equals <c>ParameterCount()</c>, the supplied field descriptors are appended because no parameter exists at that position.</para>
        </remarks>

docs/xml/Java.Lang.Invoke/ITypeDescriptor+IOfMethod.xml:248

  • These member docs add new prose but omit the standard Android reference link + AOSP/CC BY attribution paragraphs used elsewhere in this file (e.g., ParameterCount/ParameterList). For consistency and licensing attribution, please add the reference link for parameterArray() and the attribution para to this block.
        <remarks>
          <para>The returned array describes the parameter types in declaration order.</para>
        </remarks>

docs/xml/Java.Lang.Invoke/ITypeDescriptor+IOfMethod.xml:369

  • These member docs add new prose but omit the standard Android reference link + AOSP/CC BY attribution paragraphs used elsewhere in this file (e.g., ParameterCount/ParameterList). For consistency and licensing attribution, please add the reference link for parameterType(int) and the attribution para to this block.
        <remarks>
          <para>The returned descriptor describes the parameter at <paramref name="i" />.</para>
        </remarks>

docs/xml/Java.Lang.Invoke/ITypeDescriptor+IOfMethod.xml:401

  • These member docs add new prose but omit the standard Android reference link + AOSP/CC BY attribution paragraphs used elsewhere in this file (e.g., ParameterCount/ParameterList). For consistency and licensing attribution, please add the reference link for returnType() and the attribution para to this block.
        <remarks>
          <para>The returned descriptor represents this method descriptor's return type.</para>
        </remarks>

docs/xml/Java.Lang.Invoke/ITypeDescriptor+IOfMethod.xml:162

  • These member docs add new prose but omit the standard Android reference link + AOSP/CC BY attribution paragraphs used elsewhere in this file (e.g., ParameterCount/ParameterList). For consistency and licensing attribution, please add the reference link for dropParameterTypes(...) and the attribution para to this block.
        <remarks>
          <para>The removed range starts at <paramref name="start" /> and excludes <paramref name="end" />.</para>
        </remarks>

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread docs/xml/Java.Lang.Invoke/ITypeDescriptor+IOfMethod.xml
jonathanpeppers and others added 2 commits August 16, 2026 09:16
Refs #201

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Refs #201

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@jonathanpeppers
jonathanpeppers requested review from dalexsoto and removed request for dalexsoto August 16, 2026 14:18
@jonathanpeppers

Copy link
Copy Markdown
Member Author

@dalexsoto review

@dalexsoto dalexsoto left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

InsertParameterTypes now correctly documents insertion at pos and the append behavior when pos == ParameterCount(), with no remaining blocker.

@jonathanpeppers
jonathanpeppers merged commit 1c623c2 into main Aug 16, 2026
3 checks passed
@jonathanpeppers
jonathanpeppers deleted the jonathanpeppers-java-invoke-docs branch August 16, 2026 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants